// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import bus from "./bus/index";
import {BaseConfig} from './api/config'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.config.productionTip = false
Vue.prototype.bus = bus
/* eslint-disable no-new */

Vue.use(ElementUI);
new Vue({
  el: '#app',
  router,
  components: {App},
  template: '<App/>'
})

//高德的安全密钥
window._AMapSecurityConfig = {
  securityJsCode: BaseConfig.AmapSecret,
}
